class Solution {
public:
    vector<int> twoSum(vector<int>& nums, int target) {
        int i,j,n;
        for(i=0;i<nums.size()-1;i++)
        {
            for(j=i+1;j<nums.size();j++)
            {
                n=nums[i]+nums[j];
                if(n==target)
                return {i,j};
            }
        }
        return {i,j};
    }
};